#!/usr/bin/env Python
# coding=utf-8

from sqlalchemy import create_engine
from sqlalchemy import Table, MetaData, Column, Integer, String
from sqlalchemy.orm import mapper, sessionmaker
from sqlalchemy.ext.declarative import declarative_base
# 创建实例，并连接test库
databaseUrl="mysql+pymysql://root:root@localhost/xxgame"
engine = create_engine(databaseUrl,encoding='utf-8',pool_size=100, pool_recycle=3600, echo=False)
DB_Session = sessionmaker(bind=engine)
session = DB_Session()
# metadata = MetaData()
BaseModel = declarative_base()